//分片打包 loadble loading
import Loadable from "react-loadable"
import Loading from "./Loading"

const Dashboard = Loadable({
    loader:() => import('./Dashboard'),
    loading: Loading
})

const Article = Loadable({
    loader: () => import('./Article'),
    loading: Loading
})

const ArticleEdit = Loadable({
    loader: () => import('./Article/edit'),
    loading: Loading
})

const NotFound = Loadable({
    loader: () => import('./NotFound'),
    loading: Loading
})

const Settings = Loadable({
    loader: () => import('./Settings'),
    loading: Loading
})

export {
    Article,
    Dashboard,
    NotFound,
    Settings,
    ArticleEdit
}